package android.medicalcloud.com.yiapp.yilian.ui.fragment;

import android.medicalcloud.com.yiapp.R;
import android.medicalcloud.com.yiapp.base.fragment.BaseFragment;
import android.medicalcloud.com.yiapp.yilian.utils.android.IntentTool;
import android.view.View;

/**
 * Created by wanggenlin on 17-5-18.
 */
public class MeFragment extends BaseFragment {


    @Override
    protected void initView(View view) {
        view.findViewById(R.id.meLayout).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                IntentTool.person(getActivity());
            }
        });
        view.findViewById(R.id.modifyPassLayout).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                IntentTool.findPassword(getActivity());
            }
        });
        view.findViewById(R.id.mobileLayout).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                IntentTool.call(getActivity(),"95531788619");
            }
        });
    }

    @Override
    protected void initEvent() {

    }

    @Override
    protected void initData() {

    }

    @Override
    protected int getLayoutId() {
        return R.layout.fra_me;
    }

    public static MeFragment newInstance() {
        MeFragment homeFragment = new MeFragment();
        return homeFragment;
    }
}
